package com.weareint.xxljob.dynamic;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.core.annotation.Order;

/**
 *
 *
 * <pre>
 *
 * </pre>
 *
 * @author johnny
 * @date 2021-08-21 2:46 下午
 */
@Order(-1)
public class InitJobGroup implements InitializingBean {

    private final XxlJobOperators xxlJobOperators;

    public InitJobGroup(XxlJobOperators xxlJobOperators) {
        this.xxlJobOperators = xxlJobOperators;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        xxlJobOperators.initGroup();
    }
}
